package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(100)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}

type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}

type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type Depot struct {
	gorm.Model
	DepotCode   string `gorm:"type:varchar(50)"` //仓库编号
	DepotName   string `gorm:"type:varchar(50)"` //仓库名称
	DepotStatue string `gorm:"type:varchar(50)"` //仓库类型
}
type DepotOrder struct {
	gorm.Model
	DepotId     int    `gorm:"type:int"`         //仓库Id
	OrderCode   string `gorm:"type:varchar(50)"` //订单编号
	OrderPeople string `gorm:"type:varchar(50)"` //操作员
}
type DepotOrderList struct {
	DepotCode   string
	DepotName   string
	DepotStatue string
	DepotId     int
	OrderCode   string
	OrderPeople string
}
